/*
 * The I piece.
 */

package tetris.model;

import java.awt.Color;

public class PieceS extends Piece{
    public PieceS(){
        super(2, Color.GREEN);
        buildRotations();
    }

    private void buildRotations(){
        super.rotations[0] = new Rotation(new Coordinates(-1, 0),   //   X X
                                          new Coordinates(0, 1),    // X O
                                          new Coordinates(1, 1));

        super.rotations[1] = new Rotation(new Coordinates(0, 1),    // X
                                          new Coordinates(1, 0),    // O X
                                          new Coordinates(1, -1));  //   X
    }
}
